{% extends "base.html" %}
{% block title %}Model "{{model.name|escape}}"{% endblock %}
{% block head %}
{% endblock %}
{% block body %}
  <h1>Model "{{model.name|escape}}"</h1>
  <table>
    <tr><th>Categories:</th><td>{{model.categories|join:", "}}</td></tr>
    <tr><th>Public:</th><td>{% if model.public %}Yes{% else %}No{% endif %}</td></tr>
    <tr><th>Status:</th><td>{{result}}</td></tr>
    <tr><th>Trained:</th><td>{{model.trained}}</td></tr>
    </table>
    <a href="/model/{{model.key.id}}/train">Train Model</a>
    <h2>Search</h2>
    <form method="GET" action="/model/{{model.key.id}}/search">
      <input type="text" name="q" />
      <input type="submit" value="Search" />
    </form>
{% endblock %}
